package com.xwaiy.xwaiyrpc.fault.retry;

import com.xwaiy.xwaiyrpc.model.RpcResponse;

import java.util.concurrent.Callable;

/**
 * 不重试
 * @Author Xwaiy
 * @Date 2025/9/3 14:34
 **/
public class NoRetryStrategy implements RetryStrategy {
    @Override
    public RpcResponse doRetry(Callable<RpcResponse> callable) throws Exception {
        return callable.call();
    }
}
